From 13f9951eeb407c5b2391fb27689fc7a0073a4a60 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 1 Dec 2006 04:37:48 +0000 Subject: [PATCH] Change realTimestamp to a function only, per Tim's advice. --- includes/Database.php | 3 +-- includes/DatabasePostgres.php | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index 525022159e..f35aaaa1e4 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -250,7 +250,6 @@ class Database { protected $mCascadingDeletes = false; protected $mCleanupTriggers = false; protected $mStrictIPs = false; - protected $mRealTimestamps = false; #------------------------------------------------------------------------------ # Accessors @@ -367,7 +366,7 @@ class Database { * Returns true if this database uses timestamps rather than integers */ function realTimestamps() { - return $this->mRealTimestamps; + return false; } /**#@+ diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index d0963af668..77f8374e8d 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -28,12 +28,15 @@ class DatabasePostgres extends Database { $this->mCascadingDeletes = true; $this->mCleanupTriggers = true; $this->mStrictIPs = true; - $this->mRealTimestamps = true; $this->mFlags = $flags; $this->open( $server, $user, $password, $dbName); } + function realTimestamps() { + return true; + } + static function newFromParams( $server = false, $user = false, $password = false, $dbName = false, $failFunction = false, $flags = 0) { -- 2.20.1